package com.gaofei.sysmanager.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wjj
 * @since 2021-11-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Loan extends Model<Loan> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("cardID")
    private String cardID;

    private String name;

    private String phone;

    private String address;

    private String detailedAddress;

    private String loanUse;

    private Double loanPrice;

    private String guarantee;

    private String branches;

    private String branchesPhone;

    private String detaAddress;

    private Integer audit;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
